<link rel="stylesheet" href="__STATIC__/admin/css/welcome.css?v={:time()}" media="all">
<div class="layuimini-container">
    <div class="layuimini-main">
     <!--     <fieldset id="searchFieldset_currentTableRenderId" class="table-search-fieldset">
                                        <legend>条件搜索</legend>
                                        <form class="layui-form layui-form-pane " >
                                    
                                            <div class="layui-form-item layui-inline">
                                                <label class="layui-form-label">下单时间</label>
                                                 <div class="layui-input-inline">
                                                    <input type="text" name="up_date" id="test1" data-date=""  data-date-type="datetime" data-date-range="~" class="layui-input"  placeholder="请选择下单时间" value="">
                                                 </div>
                                            </div>
                                            <div class="layui-form-item layui-inline" style="margin-left: 115px">
                                                <button type="button" class="layui-btn layui-btn-normal" id="btn"> 搜 索</button>
                                                 <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                            </div>
                                        </form>
                                    </fieldset> -->
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md8">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md6">

                        <div class="layui-card">

                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>数据统计</div>

                            <div class="layui-card-body">

                                <div class="welcome-module" >
                                  
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-blue">实时</span>
                                                        <h5>购票统计</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$ticket_number}</h1>
                                                        <small>购票总人数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-cyan">实时</span>
                                                        <h5>购票金额统计</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$ticket_price}</h1>
                                                        <small>购票总金额</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-orange">实时</span>
                                                        <h5>树屋租赁统计</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$house_number}</h1>
                                                        <small>租赁总次数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-green">实时</span>
                                                        <h5>租赁金额统计</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$house_price}</h1>
                                                        <small>租赁总金额</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-credit-card icon icon-blue"></i>快捷入口</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10 layuimini-qiuck">
                                        {foreach $quicks as $vo}
                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a layuimini-content-href="{:url($vo['href'])}" data-title="{$vo['title']}">
                                                <i class="{$vo['icon']|raw}"></i>
                                                <cite>{$vo['title']}</cite>
                                            </a>
                                        </div>
                                        {/foreach}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                  <!--   <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-line-chart icon"></i>报表统计</div>
                            <div class="layui-card-body">
                                <div id="echarts-records" style="width: 100%;min-height:500px"></div>
                            </div>
                        </div>
                    </div> -->
                </div>
            </div>
            <div class="layui-col-md4">
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-bullhorn icon icon-tip"></i>系统公告</div>
                    <div class="layui-card-body layui-text">
                        <div class="layuimini-notice">
                            <div class="layuimini-notice-title">系统初始化</div>
                            <div class="layuimini-notice-extra">2021-07-21 09:06</div>
                            <div class="layuimini-notice-content layui-hide">
                                tp6加layui作为底层框架。<br>
                                系统安装成功之后默认会显示自带的插件，本地如果没有插件请从商店下载到本地。<br>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-fire icon"></i>版本信息</div>
                    <div class="layui-card-body layui-text">
                        <table class="layui-table">
                            <colgroup>
                                <col width="100">
                                <col>
                            </colgroup>
                            <tbody>
                                <tr>
                                    <td>框架名称</td>
                                    <td>
                                        Mango
                                    </td>
                                </tr>
                                <tr>
                                    <td>当前版本</td>
                                    <td>v1.0.0</td>
                                </tr>
                                <tr>
                                    <td>主要特色</td>
                                    <td>零门槛 / 响应式 / 清爽 / 极简</td>
                                </tr>
                                <tr>
                                    <td>Gitee</td>
                                    <td style="padding-bottom: 0;">
                                        <div class="layui-btn-container">
                                            <a href="https://gitee.com/ruanzubao/mango" style="margin-right: 15px"
                                                target="_blank"><img
                                                    src="https://gitee.com/ruanzubao/mango/badge/star.svg?theme=dark"
                                                    alt="star"></a>
                                            <a href="https://gitee.com/ruanzubao/mango" target="_blank"><img
                                                    src="https://gitee.com/ruanzubao/mango/badge/fork.svg?theme=dark"
                                                    alt="fork"></a>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Github</td>
                                    <td style="padding-bottom: 0;">
                                        <div class="layui-btn-container">
                                            <iframe
                                                src="https://ghbtns.com/github-btn.html?user=skyhxm&repo=mango&type=star&count=true"
                                                frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
                                            <iframe
                                                src="https://ghbtns.com/github-btn.html?user=skyhxm&repo=mango&type=fork&count=true"
                                                frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>
        </div>
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-line-chart icon"></i>报表统计</div>
                    <div class="layui-card-body">
                        <div id="echarts-records" style="width: 100%;min-height:500px"></div>
                    </div>
                </div>
            </div>
        </div>
         <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-line-chart icon"></i>租赁报表统计</div>
                    <div class="layui-card-body">
                        <div id="echarts-lease" style="width: 100%;min-height:500px"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
      var laydate = layui.laydate;
      var $ = layui.$;
      //执行一个laydate实例
      laydate.render({
        elem: '#test1' //指定元素
         ,range: '~'
         ,type:'datetime'
      });
    layui.use('layer', function () {
        var layer = layui.layer;
        var $ = layui.$
        var remoteDomain = "{:env('mango.api_address')}"

        $.post(remoteDomain + "/api/plug/version", {}, function (str) {
            $.post('getRemoteVersion', { version: str.data }, function (str) {
                if (str.code == 0) {
                    layer.confirm(str.msg, {
                        btn: ['取消', '更新'] //可以无限个按钮
                    }, function (index, layero) {
                        //按钮【按钮一】的回调
                        layer.close(index)
                    }, function (index) {
                        //按钮【按钮二】的回调
                        $.post('gitUp', { version: str.data }, function (str) {
                            layer.msg(str.data)
                        });
                    });
                }
            });
        });
    });
$("#btn").click(function(){
    var datetime=$("#test1").val();
    // console.log(datetime)
})
</script>